<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich">

	<h:head>
	
	</h:head>
	
	<h:body>
		<div id="contenedorPrincipal">
			<h:panelGroup style="width: 914px;" >
				<object height="132" width="914" 
				        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" 
				        classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
					<param value="${facesContext.externalContext.requestContextPath}/images/banner.swf" name="src"/>
					<param value="914" name="width"/>
					<param value="132" name="height"/>
					<!-- embed height="132" width="914" src="${facesContext.externalContext.requestContextPath}/images/banner.swf" type="application/x-shockwave-flash"></embed -->
				</object>
			</h:panelGroup>
			
			<h:panelGroup id="contenidoPagina">
				<h:form name="formularioError">
				
					<rich:panel style="width: 914px;">
						<f:facet name="header">
							<h:outputText value="Error Inesperado"/>
						</f:facet>
						<h:outputText escape="false" value="#{errorControlador.infoMessage}" />
						<br/>
						<rich:panel>
							<f:facet name="header">
								<a4j:commandButton value="Ver Detalles" actionListener="#{errorControlador.mostrarDetalles}" reRender="panelDetalle"/>
							</f:facet>
							<h:panelGroup id="panelDetalle">
								<h:inputTextarea rendered="#{errorControlador.mostrarDetalle}" style="width: 99%;" rows="20" readonly="true" value="#{errorControlador.stackTrace}" />
							</h:panelGroup>
						</rich:panel>
					</rich:panel>
				</h:form>
			</h:panelGroup>
	
			<img alt="divider" src="${facesContext.externalContext.requestContextPath}/images/divider.jpg"/>
				
			<ui:insert name="piePagina">
				<h:panelGroup id="pie" layout="block">
					<rich:panel id="copyright" style="text-align: center; border: 0;">
						<h:outputText id="copyrightText" value="&#160;&#174; Copyright Secretaria Nacional de Transparencia de Gestion"/>
					</rich:panel>
				</h:panelGroup>
			</ui:insert>
		</div>
	</h:body>
	
</html>
